package com.itheima.travel.service;

import com.github.pagehelper.PageInfo;
import com.itheima.travel.req.RouteVo;

public interface RouteService {
    /**
     * @Description 添加路线
     * @param routeVo 路径请求参数
     * @return 影响行数
     */
    Integer addRoute(RouteVo routeVo);

    /**
     * @Description 编辑线路
     * @param routeVo 线路请求参数
     * @return 影响行数
     */
    Integer updateRoute(RouteVo routeVo);

    PageInfo<RouteVo> findRouteByPage(RouteVo routeVo,int pageNum,int pageSize);

    RouteVo findRouteById(RouteVo routeVo);

    PageInfo<RouteVo> findSellerById(RouteVo routeVo,int pageNum, int pageSize);
}
